/*
 * @Description: 待办不展示
 */
import closeWindow from '@/helper/close';
import api from '@/api';
import globalMethods from '@/plugins/methods';

export default () =>
  new Promise((resolve) => {
    //调接口删除
    api
      .btnGroupTopDeleteCol()
      .then(() => {
        globalMethods.message.success({
          content: $.i18n('wpsplugin.bookmark.deleteSuccess'),
          onClose() {
            closeWindow();
          }
        });
      })
      .catch(resolve);
  });
